#root {
  height: 100%;
  min-width: 1100px;
  min-height: 500px;
}

.ant-input-number,
.ant-time-picker-input,
.ant-btn {
  border-radius: 2px !important;
}

.ant-btn-group {
  .ant-btn {
    border-radius: 0 !important;
  }

  button:first-child {
    border-top-left-radius: 2px !important;
    border-bottom-left-radius: 2px !important;
  }

  button:last-child {
    border-top-right-radius: 2px !important;
    border-bottom-right-radius: 2px !important;
  }
}

// 公共弹窗样式
.ant-modal {
  .ant-modal-content {
    border-radius: 2px !important;
  }
  .ant-modal-header {
    border-bottom: none !important;
  }

  .ant-modal-footer {
    border-top: none !important;
  }
  // &.no-header-bottom-lines {
  //   .ant-modal-header {
  //     border-bottom: none !important;
  //   }

  //   .ant-modal-footer {
  //     border-top: none !important;
  //   }
  // }
  .ant-modal-footer {
    text-align: center !important;
  }

  &.bottom-center {
    .ant-modal-footer {
      text-align: center !important;
    }
  }

  &.padding-24 {
    .ant-modal-header {
      padding-top: 24px;
      padding-bottom: 0;
    }

    .ant-modal-footer {
      padding-top: 0;
      padding-bottom: 24px;
    }

    .ant-modal-close-x {
      width: 72px;
      height: 72px;
      line-height: 72px;
    }
  }
  .ant-modal-footer {
    text-align: center;
    height: 56px;
  }

  .ant-modal-header {
    border: none;
    padding-top: 24px;
    padding-bottom: 0;
  }
  .ant-modal-footer {
    border: none;
    padding-top: 0;
    padding-bottom: 24px;
  }
  .ant-modal-close-x {
    width: 72px;
    height: 72px;
    line-height: 72px;
  }
  .ant-form-item {
    min-height: 40px;
    margin-bottom: 16px;
  }
}

.ant-input,
.ant-select-selection {
  border-radius: 2px !important;
}

.ant-input-search {
  .ant-btn {
    border-radius: 0 !important;
  }

  .ant-input {
    border-top-left-radius: 2px !important;
    border-bottom-left-radius: 2px !important;
  }

  .ant-input-search-button {
    border-top-right-radius: 2px !important;
    border-bottom-right-radius: 2px !important;
  }
}

.ant-radio-button-wrapper {
  &:first-child {
    border-radius: 2px 0 0 2px !important;
  }

  &:last-child {
    border-radius: 0 2px 2px 0 !important;
  }
}

.ant-dropdown {
  ul {
    border-radius: 2px !important;
  }
}

::-webkit-scrollbar-track {
  background-color: #fbfbfb;
  border: 1px solid #eee;
}

::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background-color: #c1c1c1;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #7d7d7d;
}

.ant-pagination-options-quick-jumper {
  input {
    text-align: center;
  }
}

.ant-popover-inner {
  border-radius: 2px !important;
}

.ant-layout-content {
  flex: 1 !important;
}

input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
  background: none !important;
}

.ant-btn-primary,
.be-bg-color {
  background-color: #0b6fd6 !important;
  border-color: #0b6fd6 !important;
  &:hover {
    background-color: #105dc6 !important;
    border-color: #105dc6 !important;
  }

  &:active {
    background-color: #0d45a7 !important;
    border-color: #0d45a7 !important;
  }
}

.ant-btn-primary[disabled] {
  background-color: #f5f5f5 !important;
  border-color: #d9d9d9 !important;
}

.ant-upload-disabled {
  .ant-btn-primary {
    background-color: #f5f5f5 !important;
    border-color: #d9d9d9 !important;
  }
}

.be-color {
  color: #0b6fd6 !important;
  &:hover {
    color: #105dc6 !important;
  }

  &:active {
    color: #0d45a7 !important;
  }
}
.ant-progress-success-bg {
  background-color: #0b6fd6 !important;
}

.fatal-level {
  color: #a00000;
}
.high-level {
  color: #ee3e41;
}
.middle-level {
  color: #f67e23;
}
.low-level {
  color: #fed831;
}

.fatal-level-bg {
  background-color: #a00000 !important;
}
.high-level-bg {
  background-color: #ee3e41 !important;
}
.middle-level-bg {
  background-color: #f67e23 !important;
}
.low-level-bg {
  background-color: #fed831 !important;
}

.button-forwards {
  animation: throttle 1s step-end forwards;
  &:active {
    animation: none;
  }
}

@keyframes throttle {
  from {
    pointer-events: none;
  }
  to {
    pointer-events: all;
  }
}

// 公共样式
.df {
  display: flex;
}
.flex-base {
  align-items: baseline;
}

.ia-splitter-handle {
  height: 100%;
  position: absolute;
  top: 0px;
  right: -6px;
  width: 11px;
  z-index: 11;
  cursor: col-resize;
  .ia-splitter-handle-highlight {
    background-position: right center;
    background-repeat: no-repeat;
    position: absolute;
    top: 0;
    left: 4px;
    bottom: 0;
    width: 6px;
    border-left: 1px solid #e6eaef;
  }
}

.flex1 {
  flex: 1;
}

.flex2 {
  flex: 2;
}

.jcsb {
  justify-content: space-between;
}

.ac {
  align-items: center;
}

.aib {
  align-items: baseline;
}

.aic {
  align-items: center;
}

.vatt {
  vertical-align: text-top;
}

.ml10 {
  margin-left: 10px;
}

.mr10 {
  margin-right: 10px;
}

.mr8 {
  margin-right: 8px;
}

.pointer {
  cursor: pointer;
}

.h100 {
  height: 100%;
}
